package org.dtrd.modules.system.entity.bean.qiyeweixin;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * @author qr
 * @date 2022/3/7 10:23
 */
@ApiModel("发送机器人消息请求")
@Getter
@Setter
public class RobotMessageRequest {

    @ApiModelProperty("推送消息的机器人")
    private Integer robotId;

    @ApiModelProperty(value = "消息类型", notes = "1-文本，2-markdown，3-图片，4-图文")
    private Integer msgType;

    @ApiModelProperty("text内容")
    private RobotMessage.Text text;

    @ApiModelProperty("markdown内容")
    private RobotMessage.Markdown markdown;

    @ApiModelProperty("图文内容, articles部分")
    private RobotMessage.Articles[] articles;

    @ApiModelProperty("图片内容")
    private String imageUrl;

    @ApiModelProperty("上传文件后的media_id")
    private String file;

    @ApiModelProperty("文本通知模版卡片")
    private RobotMessage.TemplateCard text_notice;

    @ApiModelProperty("图文展示模版卡片")
    private RobotMessage.TemplateCard news_notice;
}
